//
//  ACAssetCell.h
//  AlbumFetch
//
//  Created by 黄志明 on 2017/2/6.
//  Copyright © 2017年 黄志明. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AssetsLibrary/AssetsLibrary.h>

@class ACAssetModel;
@protocol ACAssetCellEventDelegate;

@interface ACAssetCell : UICollectionViewCell

@property (nonatomic, strong) NSIndexPath *indexPath;
@property (nonatomic, assign) CGFloat cellWidth;
@property (nonatomic, weak) id <ACAssetCellEventDelegate> delegate;


- (void)bindImage:(UIImage *)image asset:(ALAsset *)asset;
- (void)bindData:(ACAssetModel *)assetModel;

- (void)changeSelectStatus:(BOOL)isSelected;

@end


@protocol ACAssetCellEventDelegate <NSObject>

@optional

- (BOOL)shouldSelectCell:(ACAssetCell *)cell;

- (void)didSelectCell:(ACAssetCell *)cell;

- (void)didDeselectCell:(ACAssetCell *)cell;

@end
